package com.yijianonghu.util;

import javax.servlet.http.HttpSession;

public final class ControllerUtils {
	
	public static Integer getUserId(HttpSession session){
		Integer userId=(Integer) session.getAttribute(Constants.CommonConstants.USER_ID);
		if(userId==null && "dev".equalsIgnoreCase(System.getProperty("com.yijianonghu.environment"))){
			userId=19115;
		}
		return userId;
	}
}
